import { IFeidaoAiWeappPage } from '../../../../interfaces';
import get_inner_audio_context from './_create-inner-audio-context';

/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-camera.html)
 */
export default function start_record(fd: IFeidaoAiWeappPage, src?: string, startTime?: number, autoplay?: boolean, loop?: boolean, obeyMuteSwitch?: boolean) {
	const ctx = get_inner_audio_context(fd, src, startTime, autoplay, loop, obeyMuteSwitch);
	ctx.play();
}
